package com.sy.webdemo.bean;

import com.sy.service.IpService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * @author songyi
 * @className ConsumerComponent
 * @description 服务消费者
 * @date 2020/8/17 0017 13:58
 */
@Component
public class ConsumerComponent {

    @DubboReference(group = "dubbo", loadbalance="roundrobin")
    private IpService ipService;

    public String getIp() {
        return ipService.getIp();
    }
}
